﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="AbingtonBooks.Pages.Profile.MyBooks.Default" %>
<%@ Register TagPrefix="uc" TagName="ProfileNav" 
    Src="~/User Controls/ProfileNavigation.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
        <div style="float:left">
    <uc:ProfileNav id="nav" runat="server" />
            </div>
        <div style="float:left; margin-left:10%; margin-top:5%;">
    <asp:GridView ForeColor="White" AllowPaging="true" CellPadding="10"  GridLines="Horizontal" ID="BookGrid" runat="server" 
      AutoGenerateColumns="False"
      Width="80%">
        <FooterStyle ForeColor="Black" 
               BackColor="#C6C3C6"></FooterStyle>
            <PagerStyle ForeColor="white" HorizontalAlign="Right" 
               BackColor="black"></PagerStyle>
      <Columns>
          <asp:ImageField DataImageUrlField="Src" HeaderText=""></asp:ImageField>
          <asp:BoundField DataField="Title" HeaderText="Title"></asp:BoundField>
          <asp:BoundField DataField="Author" HeaderText="Author"></asp:BoundField>
          <asp:BoundField DataField="ISBN" HeaderText="ISBN"></asp:BoundField>
          <asp:BoundField DataField="Price" HeaderText="Price"></asp:BoundField>
          <asp:BoundField DataField="Subject" HeaderText="Subject"></asp:BoundField>
          <asp:BoundField DataField="CourseNumber" HeaderText="Course Number"></asp:BoundField>
           <asp:TemplateField>
              <ItemTemplate>
                  <asp:ImageButton ImageUrl="~/Assets/Images/remove.gif" ID="Delete" Text="Remove" CommandArgument='<%# Eval("BookId") %>' runat="server" CommandName="Delete" onCommand="removeBook"/>
              </ItemTemplate>
          </asp:TemplateField>
      </Columns>
  </asp:GridView>
            </div>
        </div>
</asp:Content>
